<div class="title-holder">
    <h4>Dự án gần đây</h4>
</div>
<ul  id="latest_project" class="bxslider">
    <?php foreach ($projects as $project) { ?>
        <li>
            <a href="<?php echo base_url();?>du-an/chi-tiet/<?php echo $project->permalink;?>"><img src="<?php echo $project->image;?>" alt="" /></a>
            <div class="project_heading widget">
                <h4><?php echo $project->title;?></h4>
                <p><?php if(strlen($project->description)<100){echo $project->description;} else echo substr($project->description,0,100).'...'?></p>
            </div>
        </li>
    <?php } ?>    
</ul>